We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 644ef53 + b281a57 commit a4be231Copy full SHA for a4be231
coffee/docUtils.coffee
@@ -32,9 +32,6 @@ DocUtils.defaultParser=(tag) ->
32
if tag=='.' then return scope else return scope[tag]
33
}
34
35
-DocUtils.nl2br = (str,is_xhtml) ->
36
- (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br>' + '$2');
37
-
38
DocUtils.tags=
39
start:'{'
40
end:'}'
@@ -63,8 +60,7 @@ DocUtils.clone = (obj) ->
63
60
64
61
DocUtils.xml2Str = (xmlNode) ->
65
62
a= new XMLSerializer()
66
- content= a.serializeToString(xmlNode)
67
- content.replace /\x20xmlns=""/g, '' #remove all added xmlns="" (these cause the file to be corrupt and was a problem for firefox)
+ a.serializeToString(xmlNode)
68
69
DocUtils.Str2xml= (str,errorHandler) ->
70
parser=new DOMParser({errorHandler})
0 commit comments