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

User avatar
Ovg
Posts: 128
Joined: Mon Feb 02, 2015 8:44 am
Contact:

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

Postby Ovg » Wed Jun 14, 2017 4:25 pm

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
It's impossible to lead us astray for we don't care even to choose the way.
CN 3.14β3 LifeTime Pro Licence / Windows 7 SP1 x64
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

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

Postby CintaNotes Developer » Mon Jun 19, 2017 12:36 pm

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
Alex
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

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

Postby CintaNotes Developer » Mon Jun 19, 2017 12:43 pm

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.
Alex
User avatar
Ovg
Posts: 128
Joined: Mon Feb 02, 2015 8:44 am
Contact:

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

Postby Ovg » Mon Jun 19, 2017 4:35 pm

Thank you for reply, Alex!
It's impossible to lead us astray for we don't care even to choose the way.
CN 3.14β3 LifeTime Pro Licence / Windows 7 SP1 x64
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

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

Postby CintaNotes Developer » Tue Jun 20, 2017 6:26 am

No problem! Added the task to our todo list.
Alex

Return to “Bug Reports”