code: function escapeHtmlChars(text) 
  {
      let ast = myna.parsers.html_reserved_chars(text);
      if (!ast.children)    
          return "";
      return ast.children.map(astNodeToHtmlText).join('');
  }
docs: Returns a string, replacing all of the reserved characters with entities