本文介绍了Tidy变换“& amp;”在source-xml中加入“&”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的整洁工作留下2个问题:


1)Tidy转换& amp; ;在source-xml中加入&在整理的

版本中。我的XML-Importer无法处理它

2)在一个长的< title> -string中生成一个包裹如下:

< title>我很长的标题blab la blab la

Blabla bla< / title>

进口商也有问题

我的tidy.bat

tidy.exe --output-xhtml yes --show-body-only yes --new-blocklevel-tags

组件,bblocation,title2,short_intro,long_intro,日期,引用,类别, image_small,image_medium,image_large,body2,external_link_text1,external_lin k_url1

--inten auto --write-back yes%1

问候

Ragnar

Hi,

2 issues left with my tidy-work:

1) Tidy transforms a "&amp;" in the source-xml into a "&" in the tidied
version. My XML-Importer cannot handle it
2) in a long <title>-string a wrap is produced like:
<title>my very long title blab la blab la
Blabla bla </title>
Importer also has got problems with it
My tidy.bat
tidy.exe --output-xhtml yes --show-body-only yes --new-blocklevel-tags
component,bblocation,title2,short_intro,long_intro ,date,reference,category,image_small,image_medium, image_large,body2,external_link_text1,external_lin k_url1
--indent auto --write-back yes %1
regards
Ragnar

推荐答案



等一下 - 如果您的来源是XML,为什么要通过Tidy?


话虽如此,这不应该在XHTML输出模式下发生。联系

Tidy'的作者,和/或向我们展示一个失败的例子,这样我们就可以交叉检查

这个并确保

Hold it a moment -- if your source is XML, why are you going through Tidy?

Having said that, this shouldn''t happen in XHTML output mode. Contact
Tidy''s authors, and/or show us a failing example so we can crosscheck
this and make sure



关闭自动缩进。 />

-

()ASCII Ribbon Campaign | Joe Kesselman

/ \标记HTML电子邮件! |系统architexture和动态诗歌

Turn off auto-indent.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry




有没有更好的方法来检查xml文件的格式是否比

tidy -xml?

-Timo

Is there a better way to check the well-formedness of a xml-file than
tidy -xml ?
-Timo



这篇关于Tidy变换“&amp; amp;”在source-xml中加入“&amp;”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 11:34