To download this project, use:
bzr branch
http://golem.ph.utexas.edu/~distler/code/itexToMML/
« back to all changes in this revision
Viewing changes to itex-src/itex_stringsupport.rb
-
Committer:
Jacques Distler
-
Date:
2010-07-20 18:05:52 UTC
-
Revision ID:
distler@golem.ph.utexas.edu-20100720180552-wcgj1yhgixq65d1e
Tags: 1.3.26
itex2MML 1.3.26
Fix \sslash (thanks to Toby Bartels).
Small refactoring in Ruby implementation.
Show diffs side-by-side
added
removed
2318
TO_ESCAPE_PATTERN = Regexp.union(TO_ESCAPE.keys)
2312
self.gsub( /&/, "&" ).
2313
gsub( /</, "<" ).
2314
gsub( />/, ">" ).
2315
gsub(/'/, "'" ).
2316
gsub(/"/, """ )
2321
self.gsub(TO_ESCAPE_PATTERN){|m| TO_ESCAPE[m]}
2319
2324
def unescapeHTML