Search code examples
expressionengine

showing HTML in field instructions, not rendering?


I have a field for embedding videos. In the description I would like to show a sample of what that code should look like. However natively EE will render the HTML. Is there a way to show exactly what the code should look like without it being rendered? Other fields have HTML that needs to render so if there is a global on/off it must be on.


Solution

  • Copy and paste your code into this Encoder and paste the output into the description field:

    http://www.opinionatedgeek.com/DotNet/Tools/HTMLEncode/encode.aspx