You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the regex used for cleaning elements fails to take into account a somewhat common case where there is a / in an attribute:
This appears to be relatively common with <ref> , which has examples like:
<ref name="http://a.great.site/"/>
It appears that because there is a non-whitespace char between / and >, it fails. The current (warning, this will get refactored so don't just blindly search for the string!) regex is:
re.compile(r"<\s*%s\b[^>]*/\s*>" % tag, re.DOTALL | re.IGNORECASE) for tag in selfClosingTags
This needs tweaking
The text was updated successfully, but these errors were encountered:
Currently the regex used for cleaning elements fails to take into account a somewhat common case where there is a
/
in an attribute:This appears to be relatively common with
<ref>
, which has examples like:It appears that because there is a non-whitespace char between
/
and>
, it fails. The current (warning, this will get refactored so don't just blindly search for the string!) regex is:This needs tweaking
The text was updated successfully, but these errors were encountered: