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
I've been using the sanitize helper in BigCommerce to get clean text from html. We just encountered an error that I've narrowed down to an issue with handling invalid html.
Example input:
<p>
before bug<img test"="">after bug
</p>
I've added a deliberate mistake with the syntax of the img attribute, adding a random double quote.
This causes the sanitize to stop at that syntax error and only output text from before it. e.g. "before bug".
It would be nicer if it was more robust.
The text was updated successfully, but these errors were encountered:
I've been using the sanitize helper in BigCommerce to get clean text from html. We just encountered an error that I've narrowed down to an issue with handling invalid html.
Example input:
I've added a deliberate mistake with the syntax of the img attribute, adding a random double quote.
This causes the sanitize to stop at that syntax error and only output text from before it. e.g. "before bug".
It would be nicer if it was more robust.
The text was updated successfully, but these errors were encountered: