Home Download Buy Blog Forum Support

Less than character prevents Expand Selection to Tag

Less than character prevents Expand Selection to Tag

Postby jwpeter on Tue Aug 28, 2012 8:33 am

I found a little quirk where if a block of text contains a less that character (<), it prevents the Expand Selection to Tag binding from executing. Is there a way to ignore this behavior?

I'm working on a keybinding that uses these three commands to paste and convert html entities:

Code: Select all
"commands": [
        {"command": "paste"},
        {"command": "expand_selection", "args": {"to": "tag"}},
        {"command": "encode_html_entities"}
      ]


It works fine in all other instances, but once a block of text contains a less than sign then it doesn't work.

Ex.
<p> This is some text with a < contained in it </p>
jwpeter
 
Posts: 2
Joined: Thu Jan 05, 2012 4:53 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 7 guests