【发布时间】:2019-08-08 13:08:45
【问题描述】:
我有一个像这样的文本节点:
<string>Lorem Ipsum - All the "facts".</string>
当我尝试用这个打开和编辑文档时:
doc = Nokogiri::XML(File.open(doc_name))
doc.search("//string[text() = '...']").remove
我在实际文档中得到了这个:
<string>Lorem Ipsum - All the "facts".</string>
有没有办法保存&quot; ??
预期结果:
<string>Lorem Ipsum - All the "facts".</string>
【问题讨论】:
-
不幸的是它没有用