class Object

Constants

ETYPE_LEAF
ETYPE_NODE
ETYPE_UNDEFINED
FONT_DIR
SUBSCRIPT_CONST

Public Instance Methods

escape_high_ascii(string) click to toggle source
# File lib/rsyntaxtree/string_parser.rb, line 20
def escape_high_ascii(string)
  html = ""
  string.length.times do |i|
    ch = string[i]
    if(ch < 127)
      html += ch.chr
    else
      html += sprintf("&#%d;", ch)
    end
  end  
  html
end