Built-In Namespace _global_

Method Summary

Method Detail

  • {String} decodeHTMLEntities(text)

    Decodes any HTML entities in a string into their unicode form


    Defined in: helpers.js.
    Parameters:
    {String} text
    text to decode
    Returns:
    {String} Decoded text
  • {String} stripHTML(str)

    Converts a HTML stringo into plaintext format that resembles Markdown

    Only good for simple and valid HTML, probably breaks on eveything else

    Placeholders:

    • -\u0000\u0000- for newline
    • -\u0001\u0001- for a space
    • -\u0002\u0002- temporary newlines

    Defined in: helpers.js.
    Parameters:
    {String} str
    HTML string to convert
    Returns:
    {String} Plaintext that resembles Markdown