Page 1 of 1

<h3> and <p> tags inside <a></a> tags not showing

Posted: Thu Oct 18, 2018 3:46 pm
by Sendlingur
I'm trying to use this code in the content editor

Code: Select all

<div class="col-lg-4 col-md-5 col-sm-6 flex-box floor-descr">
	<a href="{cms_selflink href ="seemorepage"}" class="service-box">
	   <h3>Text</h3>
	    <p>More text text text text </p>
	<footer>
	  <span class="see-more">See more</span>
	</footer>
	</a>
</div>
For some reason the content editor skips to render the <a></a> tags
But if I put this block in the template it shows with our problems.

I would rather not have to do that. What I need is to be able to paste it in the content editor.

Is there a way to do that without loosing the a tags?
Can anyone advise me on how I can manage to show this codeblock as it is?

Re: <h3> and <p> tags inside <a></a> tags not showing

Posted: Thu Oct 18, 2018 9:21 pm
by Gregor
Does the content editor have WYSISYG enabled? If so, disable it and try again.

Re: <h3> and <p> tags inside <a></a> tags not showing

Posted: Thu Oct 18, 2018 11:51 pm
by DIGI3
Although there are ways to configure the wysiwyg to not strip out certain tags, you're better off setting pages to not use wysiwyg if you're expecting pasted html.