dojox/html/entities.js

  • Provides:

    • dojox.html.entities
  • dojox.html.entities.html

    • summary
  • dojox.html.entities.latin

    • summary
  • dojox.html.entities.encode

    • type
      Function
    • parameters:
      • str: (typeof string)
        The string to process for possible entity encoding.
      • m: (typeof array)
        An optional list of character to entity name mappings (array of
        arrays).  If not provided, it uses the and Latin entities as the
        set to map and escape.
    • source: [view]
        if(str){
         if(!m){
          // Apply the basic mappings. HTML should always come first when decoding
          // as well.
          str = _applyEncodingMap(str, dojox.html.entities.html);
          str = _applyEncodingMap(str, dojox.html.entities.latin);

       
         }else{
          str = _applyEncodingMap(str, m);
         }
        }
        return str;
    • summary
      Function to obtain an entity encoding for a specified character
    • tags:
  • dojox.html.entities.decode

    • type
      Function
    • parameters:
      • str: (typeof string)
        The string to process for possible entity encoding to decode.
      • m: (typeof array)
        An optional list of character to entity name mappings (array of
        arrays).  If not provided, it uses the HTML and Latin entities as the
        set to map and decode.
    • source: [view]
        if(str){
         if(!m){
          // Apply the basic mappings. HTML should always come first when decoding
          // as well.
          str = _applyDecodingMap(str, dojox.html.entities.html);
          str = _applyDecodingMap(str, dojox.html.entities.latin);

       
         }else{
          str = _applyDecodingMap(str, m);
         }
        }
        return str;
    • summary
      Function to obtain an entity encoding for a specified character
    • tags:
  • dojox.html.entities

    • type
      Object
    • summary
  • dojox.html

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary