question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems using setHTML

See original GitHub issue

I’ve been using a script to get texts that have been saved as HTML and save them on Etherpad, the problem is that everything that I try to input for setHTML gets returned as malformed.

Here’s a example from one of the HTML’s that is being rejected

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><base target="_blank" /></head><body><font style="font-family: Verdana;" size="5"><span style="font-weight: bold; text-decoration: underline; font-style: italic; color: rgb(255, 153, 0);">kkk</span></font></body></html>

I also attached a print from the console below

capture

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joassouzacommented, Mar 12, 2018

As it seems to be an issue of the plugin, not the Etherpad, can you close it? Feel free to report the error on the ep_page_view =)

0reactions
poafernandescommented, Mar 12, 2018

So, I’ve just downgraded ep_page_view to 5.23 and now it works. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Element.setHTML() - Web APIs - MDN Web Docs
The setHTML() method of the Element interface is used to parse and sanitize a string of HTML and then insert it into the...
Read more >
ResetIsDirty on FCKeditor immediately after SetHTML
I am using IsDirty to check for changes in my FCKeditor. Unfortunately, it seems that its functions are asynchronous. Here is the failing...
Read more >
Thread: [SOLVED] QTextDocument setHtml and HTML Tags ...
I build and format the Report using HTML from the "Supported HTML Subset". ... setHtml and HTML Tags/Properties "align=center" problems.
Read more >
How to set HTML meta elements with knitr ? - GeeksforGeeks
The metadata means information about data. The <meta> tag in HTML provides information about HTML Document or in simple words, it provides ...
Read more >
Using dangerouslySetInnerHTML in a React application
This becomes an issue especially if you are fetching data from a third-party source or rendering content submitted by users. When to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found