Page 1 of 1

The text between the angle brackets is not inserted in the new note

Posted: Wed Jun 14, 2017 4:25 pm
by Ovg
Hi Alex!

It seems that text between angle brackets and brackets is not inserted into new note upon pressing Ctrl-F12. Eg: https://www.voidtools.com/forum/viewtop ... 601#p18601

Code: Select all

dm:last<dayname>
clipped as

Code: Select all

dm:last

CN - 3.8

Re: The text between the angle brackets is not inserted in the new note

Posted: Mon Jun 19, 2017 12:36 pm
by CintaNotes Developer
Hi Oleg,

I confirm the behavior, but here the author of the page is at fault and not CN. The problem is that the < and > symbols were not properly escaped on the source HTML page. It should have been written as dm:last&lt;dayname&gt; in the HTML source.

The HTML parser in CN thought it was some unknown HTML tag and simply skipped it. If we change the behavior so that such tags are not skipped, various "section", "video" and numerious other things will start appearing in note text. To avoid this, we'd have to maintain a list of possible HTML tags, and this list will get outdated when the next HTML standard comes out.

Please see here for more info: https://stackoverflow.com/questions/256 ... -in-html-5

Re: The text between the angle brackets is not inserted in the new note

Posted: Mon Jun 19, 2017 12:43 pm
by CintaNotes Developer
UPD: Seems that PHPBB is doing that. On the page above the < and > symbols also aren't properly escaped.. we might need to come up with some workaround.

Re: The text between the angle brackets is not inserted in the new note

Posted: Mon Jun 19, 2017 4:35 pm
by Ovg
Thank you for reply, Alex!

Re: The text between the angle brackets is not inserted in the new note

Posted: Tue Jun 20, 2017 6:26 am
by CintaNotes Developer
No problem! Added the task to our todo list.