Note that there are some explanatory texts on larger screens.

plurals
  1. POJS Html Entity Decoding (jquery 1.7.1)
    primarykey
    data
    text
    <p>With the latest update, the following code broke. It doesnt append the code in lb_l_ret.lbcode anymore. This code however, is html entities escaped. How can I make it work? Or how can I decode those html entities in javascript? A good regular expression to decode htmlentities is fine also!</p> <pre><code>if (lb_l_ret.show_once&gt;0){ createCookie("arevico_lb", "1", lb_l_ret.show_once); } var decoded = $j("&lt;div/&gt;").html(lb_l_ret.lbcode).text(); $j('body').append(decoded); </code></pre> <p>LB ret contains option data and is unfortunately encoded into htmlentities. for example:</p> <pre><code>/* &lt;![CDATA[ */ var lb_l_ret = { lbcode: "&amp;lt;a id=&amp;quot;inline&amp;quot; href=&amp;quot;#data&amp;quot; style=&amp;quot;display: none;&amp;quot;&amp;gt;Show&amp;lt;/a&amp;gt;&amp;lt;div style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;data&amp;quot; style=&amp;quot;background-color:white;overflow:hidden;&amp;quot;&amp;gt;&amp;lt;iframe src=&amp;quot;//www.facebook.com/plugins/likebox.php?id=287663154583826&amp;amp;width=400&amp;amp;height=258&amp;amp;colorscheme=light&amp;amp;show_faces=true&amp;amp;border_color&amp;amp;stream=false&amp;amp;header=false&amp;quot; scrolling=&amp;quot;no&amp;quot; frameborder=&amp;quot;0&amp;quot; style=&amp;quot;border:none; overflow:hidden; width:400px; height:258px;&amp;quot; allowTransparency=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;", delay: "3000", show_once: "20" }; /* ]]&gt; */ </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload