Hello all!
In our system some of the texts, that are edited using ck, are used as a templates later (sort of "Dynamic template"). So naturally html is used in a mix with various template tags or flow logic. However when switching between "source" and "html" views, the code gets messed up.
Example:
results in:
As I understand this is due to incorrect HTML structure, so my short question: is it possible somehow to ensure that HTML stays as it was written, even if it's "incorrect HTML"? Or is it possible to keep same structure somehow, even if it means sacrificing some other functionality? Thanks!
In our system some of the texts, that are edited using ck, are used as a templates later (sort of "Dynamic template"). So naturally html is used in a mix with various template tags or flow logic. However when switching between "source" and "html" views, the code gets messed up.
Example:
<table> <tbody> {if} <tr><td>IF line</td></tr> {else} <tr><td>ELSE line</td></tr> {/if} </tbody> </table>
results in:
<p> {if} {else} {/if}</p> <table> <tbody> <tr><td>IF line</td></tr> <tr><td>ELSE line</td></tr> </tbody> </table>
As I understand this is due to incorrect HTML structure, so my short question: is it possible somehow to ensure that HTML stays as it was written, even if it's "incorrect HTML"? Or is it possible to keep same structure somehow, even if it means sacrificing some other functionality? Thanks!