默認軌XML構建逃脫所有的HTML,所以像: atom_feed do |feed|
@stories.each do |story|
feed.entry story do |entry|
entry.title story.title
entry.content "<b>foo</b>"
end
end
end
會產生文字:
我從以下網址解析RSS提要: http://rss.sciam.com/ScientificAmerican-Global?format=xml // $xml_text is filled with the contents read from the URL
$xml_parser = xml_parser_create();
$res = xml_parse($xml_parser, $