Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snippet_viewer.ts DOM text reinterpreted as HTML #4747

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ${css_beautify(this.renderedStyle)}
get formattedHtml() {
// Removes LitElement render artifacts e.g. <!--?lit$515089429$-->
// the `?` in `.*?` is a non-greedy match.
let html = this.shadowTag.innerHTML.replace(/<!--.*?-->/g, '');
let html = this.shadowTag.innerText.replace(/<!--.*?-->/g, '');
// Removes empty lines that may result from the previous line
html = html.replace(/\n\s*\n/g, '');
// Remove the ar-status runtime-added tag
Expand Down
Loading