Sublime Forum

Less than character prevents Expand Selection to Tag

#1

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:

"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.

This is some text with a < contained in it

0 Likes