Want to keep space and don't let Froala convert it to
this.html.insert('<a href="/">My New HTML </a>');
For now result is:
<a href="/link">My New HTML </a>
Try setting htmlUntouched
option as true
Leave the HTML inside the editor untouched without doing any special processing to it except HTML cleaning.
https://froala.com/wysiwyg-editor/docs/options/#htmlUntouched