[solved] How to post ''custom banner code'' in a block?
Hi, I wonder how I can post a piece of custom code on my site, that viewers can copy to post the code on their webpages. It is a banner code/script from an external server.
the code looks like:
+ins data-.....................................-id="727bec5e09208690b050ccfc6a45d384"+ +/ins+
+script async src="//serv...syncjs.php"++/script+
All leading end ending < > replaced by +
Trying to post this code above doesnt work on my by UNA hosted site (UNA12, froala editor). I tried with blocks raw, html and custom.Is there any way that users see the code and not the banner?
Help & Tips are very appreciated.
-
-
·
LeonidS
- ·
Hello @Peter !
You need to convert your code to the proper output view with some encoder tool. For example, go to https://mothereff.in/html-entities , enter your code to the "Decoder" area and copy the result from the "Encoded" field. ANd this code you may insert to your RAW block.
-
·
LeonidS
-
- · Peter
- ·
@LeonidS , as so many times You made my day. Thank You very very much!
-
- · Peter
-
·
In reply to LeonidS
- ·
Once this RAW block with the ENCODED banner-code will be opened again to edit exp. title or padding or something else, the code changes to DECODED again.... so it is necessary to start the encoding again. That is a pain, to do that again and again .....
Any ideas?