Search

I am trying to make html tags to appear in a textarea using markdown extra.

For example, I would like to have

<h2>Title Example</h2> appear in my displayed content in the frontend.

In my publish form, I enter the following in the textarea

&lt;h2&gt;Title Example&lt;/h2&gt;

The first time I save the form, in Content the resulting page is as I want. But if I make some amendments to the form and save it again, the html tags are interpreted by the browser and Title Example is presented as a title i.e.

Title Example

<h2>Title Example</h2>

surround the code with backticks ` `

See https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code

Ok. It works! Thanks a lot!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details