mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Text inside of tags is HTML escaped.
This commit is contained in:
@@ -2,5 +2,11 @@ module.exports =
|
||||
class Text
|
||||
constructor: (@string) ->
|
||||
|
||||
toHtml: -> @string
|
||||
toHtml: ->
|
||||
@string
|
||||
.replace(/&/g, '&')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user