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
It’s evident that the line attribute is removed by dompurify, as it is not a standard HTML attribute.
However, the removal of the line attribute means that content: attr(line); will no longer work, which will result in the line numbers not being displayed.
Perhaps we can resolve this issue by replacing the line attribute with a data-line attribute.
The text was updated successfully, but these errors were encountered:
If we input the
HTML output:
from the document intoisomorphic-dompurify
, like this:the output will be:
It’s evident that the line attribute is removed by dompurify, as it is not a standard HTML attribute.
However, the removal of the line attribute means that
content: attr(line);
will no longer work, which will result in the line numbers not being displayed.Perhaps we can resolve this issue by replacing the
line
attribute with adata-line
attribute.The text was updated successfully, but these errors were encountered: