标签: perl
有没有办法检索使用Web :: Query获取的元素的文本,包括换行符?
print wq('http://www.google.de')->find('p')->text;
任何想法?
答案 0 :(得分:0)
使用html()而不是text():
print wq('http://www.google.de')->find('p')->html;