mirror of https://github.com/zulip/zulip.git
check-templates: Allow HTML tag brackets inside tag attributes.
This commit is contained in:
parent
635828069f
commit
52e96915e2
|
@ -157,8 +157,11 @@ def get_django_tag(text, i):
|
|||
return s
|
||||
|
||||
def get_html_tag(text, i):
|
||||
quote_count = 0
|
||||
end = i + 1
|
||||
while end < len(text) and text[end] != '>':
|
||||
while end < len(text) and (text[end] != '>' or quote_count % 2 != 0):
|
||||
if text[end] == '"':
|
||||
quote_count += 1
|
||||
end += 1
|
||||
if text[end] != '>':
|
||||
raise Exception('Tag missing >')
|
||||
|
|
Loading…
Reference in New Issue