quote ' and " in XML output too
This commit is contained in:
parent
b80d52c480
commit
9b977a8761
@ -36,7 +36,12 @@ module Cmdtest
|
||||
end
|
||||
|
||||
def _quote(arg)
|
||||
arg.gsub(/&/, "&").gsub(/</, "<").gsub(/>/, ">")
|
||||
arg.
|
||||
gsub(/&/, "&").
|
||||
gsub(/"/, """).
|
||||
gsub(/'/, "'").
|
||||
gsub(/</, "<").
|
||||
gsub(/>/, ">")
|
||||
end
|
||||
|
||||
def close
|
||||
|
Loading…
x
Reference in New Issue
Block a user