CompuMasterGmbH / cammIntegrationPortal

camm Integration Portal (based on camm Web-Manager)
MIT License
2 stars 1 forks source link

SmartEditor content encoding wrong #44

Open jochenwezel opened 7 years ago

jochenwezel commented 7 years ago

Following text will be HtmlEncoded but it already HTML


            <div>
                <h1>Signware<br><!-- initial text -->
                    <img border="0" hspace="0" src="images/h1_line.gif" width="343" height="1"></h1>
                <h2 style="margin-top: 0">Kommunikation &amp; Werbung</h2>
            </div>
            <div>
                <ul>
                    <li><a href="#" target="_blank">File 1</a></li>
                    <li><a href="#" target="_blank">File 2</a></li>
                </ul>
            </div>

in preview mode: image

As soon as I add some text in the very first position, the whole text is handled correctly for proper HTML encoding: image will lead to image

As by my tests: starting with 0 to 3 leading space chars has got another logic as there are 4 or more leading space chars