-
Notifications
You must be signed in to change notification settings - Fork 92
Backend WYSIWYG text editor for pages removes html tags #119
Description
I'm adding HTML into the text editor (Description) for different pages of my website. I've realised that when I add the HTML for the first time it all works fine. When I edit the page for the second time even if I'm just editing the title, specific tags in the description part get removed and sometimes they get wrapped into paragraphs. This makes it impossible for me to use the cms capabilities of Doptor.
here is an example:
I add the following html code:
<section class="usp">
<div class="box">
<i class="fa fa-wifi"></i>
<h3>Free WIFI</h3>
<p>By providing free WIFI our guests can always keep their family and friends up to date about their stay in Cape Town. </p>
</div>
<div class="box">
<i class="fa fa-cutlery"></i>
<h3>Free Breakfast</h3>
<p>To enable you a pleasant start into the day we provide all our guests a light and lovely breakfast. </p>
</div>
<div class="box">
<i class="fa fa-user"></i>
<h3>24 hour reception</h3>
<p>In order to be always available for guests requests and to ensure that our guests experience also a safe stay in the night we offer a 24-hour reception. </p>
</div>
</section>
After saving for the first time, all seems to work fine. But then when I come back to edit the page. Upon saving tags get removed completely. This is how it look like after saving the second time:
<section class="usp">
<div class="box">
<h3>Free WIFI</h3>
<p>By providing free WIFI our guests can always keep their family and friends up to date about their stay in Cape Town. </p>
</div>
<div class="box">
<h3>Free Breakfast</h3>
<p>To enable you a pleasant start into the day we provide all our guests a light and lovely breakfast. </p>
</div>
<div class="box">
<h3>24 hour reception</h3>
<p>In order to be always available for guests requests and to ensure that our guests experience also a safe stay in the night we offer a 24-hour reception. </p>
</div>
</section>
As you can see the following tags have been completely removed:
<i class="fa fa-wifi"></i>
<i class="fa fa-cutlery"></i>
<i class="fa fa-user"></i>
Here is a picture of the text editor marked in red:

Please let me know where I'm going wrong