Prevent user from chaning tokens within input box
<p>How to prevent the change of certain elements, tokens, within a textarea with javascript or jquery? For instance I have this string  in an input</p>

<p>this is normal text  {this can't be changed 1}.  This is more text.  {This can't be changed 2 }. And some more text</p>

<p>If a user tries to change text within the curly brackets I want to prevent that from happening.</p>

<p>I thought of finding the indexes of the start and stop indexes of the tokens and when a user tries to change an element, I would see if it falls within that range.</p>

<p>Is there a different approach that I can use?</p>
