<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[default compliments]]></title><description><![CDATA[<p dir="auto">hey guys, is there any way to insert HTML tags in a remote JSON file for copliments default module?<br />
ie:<br />
&lt; font color=‘red’ &gt;hello sweety&lt; font &gt;</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.magicmirror.builders/topic/14165/default-compliments</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 22:30:18 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14165.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Dec 2020 01:32:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to default compliments on Thu, 03 Dec 2020 19:42:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ashishtank" aria-label="Profile: ashishtank">@<bdi>ashishtank</bdi></a> fantastic! that’s correct. Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/85410</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85410</guid><dc:creator><![CDATA[MrDondoT]]></dc:creator><pubDate>Thu, 03 Dec 2020 19:42:26 GMT</pubDate></item><item><title><![CDATA[Reply to default compliments on Thu, 03 Dec 2020 17:20:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrdondot" aria-label="Profile: MrDondoT">@<bdi>MrDondoT</bdi></a> said in <a href="/post/85392">default compliments</a>:</p>
<blockquote>
<p dir="auto">&lt; font color=‘red’ &gt;hello sweety&lt; font &gt;</p>
</blockquote>
<p dir="auto">It is possible but you need to change the current module code as well, right now it is creating text node but to support html text code needs to be changed as below</p>
<pre><code>for (var part of parts) {
			// create a text element for each part
			//compliment.appendChild(document.createTextNode(part)); //Comment this line
			compliment.innerHTML += part;  //Add this line
			// add a break `
			compliment.appendChild(document.createElement("BR"));
		}
</code></pre>
<p dir="auto">Result should be as below if your compliments are like below</p>
<pre><code>evening: ["Wow, you look hot!", "You look nice!", "Hi, &lt;i&gt;sexy!&lt;/i&gt;","&lt; font color='red'&gt;hello sweety&lt; /font&gt;"],
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1607015853029-77f53b06-9495-47b1-98a7-a4939e08be30-image.png" alt="77f53b06-9495-47b1-98a7-a4939e08be30-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1607015868268-b0215eac-63f0-43ed-ab2d-7775b1f4de16-image.png" alt="b0215eac-63f0-43ed-ab2d-7775b1f4de16-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">–<br />
Ashish</p>
]]></description><link>https://forum.magicmirror.builders/post/85406</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85406</guid><dc:creator><![CDATA[ashishtank]]></dc:creator><pubDate>Thu, 03 Dec 2020 17:20:08 GMT</pubDate></item></channel></rss>