Skip to main content

split_content_fragments

Function split_content_fragments 

Source
fn split_content_fragments(html: &str) -> Vec<ContentFragment>
Expand description

把服务端渲染的文章 HTML 拆成 Html / Runnable 片段序列。

仅识别带 data-runnable="true"<pre>;其余内容原样作为 Html 片段返回。 HTML 实体(&quot; &#x27; &amp; &lt; &gt;)会被解码还原为原始字符。