简体   繁体   中英

Quotes inside quotes inside quotes

The question is about complex quotes structures. Is this correct syntax to use for Django 1.6+ ?

onclick="window.open('{% url 'namespace:name' %}');"

The quotes inside the template tags do not conflict with what's outside. The template tag is rendered before the JS is run, so the JS will just see the result.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM