mojo-dom

    0熱度

    2回答

    我是Mojolicious的新手,在類Module Module中找到p標記內鏈接的標題。 <p class="Module"><a class="story" href="http://intranet/blah" >Link Text is here</a></p> 我使用下面的代碼: my $dom = Mojo::DOM->new($page); for my $elm ($dom

    4熱度

    1回答

    使用HTML :: TreeBuilder - 或Mojo :: DOM - 我想刮掉內容但保持順序,以便我可以把文本值到一個數組(然後替換與模板目的的變量文本值) 但這在TreeBuilder作爲 my $map_r = $tree->tagname_map(); my @contents = map { $_->content_list } $tree->find_by_tag_name(

    3熱度

    2回答

    我可以使用Mojo::DOM及其CSS3選擇器來找出HTML文檔的DOCTYPE?關於我的其他問題,How should I process HTML META tags with Mojo::UserAgent?我想設置文檔的字符集,我需要知道要看什麼,並且doctype sniffing似乎是要做的。當文檔設置覆蓋服務器設置(或不設置)時,HTML和HTML 5對於HTML中的charsets

    5熱度

    1回答

    任務 替換與 任何標籤的所有內容的空間。 y.html(樣本文件) <p class=MsoNormal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:1.0pt; margin-left:34.0pt;text-indent:-19.8pt'><span lang=NL-BE style='font-size:10.0p