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
{{ message }}
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
If i have to Embed an Html chunk with DOCTYPE, postscribe is not able to render it properly
var html = "<!DOCTYPE html><html><head><title>Title of the document</title></head><body>The content of the document......</body></html>";
postscribe('#test1', html);
Easily solved:
html = html.replace(/\<(\?xml|(\!DOCTYPE[^\>\[]+(\[[^\]]+)?))+[^>]+\>/g, '');
If i have to Embed an Html chunk with DOCTYPE, postscribe is not able to render it properly
Easily solved:
html = html.replace(/\<(\?xml|(\!DOCTYPE[^\>\[]+(\[[^\]]+)?))+[^>]+\>/g, '');
https://jsfiddle.net/ayxos/k7p14c3e/3/
The text was updated successfully, but these errors were encountered: