You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_build/html/index.html
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -351,6 +351,26 @@ <h1>Welcome to Python String Utils’s documentation!<a class="headerlink" h
351
351
</table>
352
352
</dd></dl>
353
353
354
+
<dlclass="function">
355
+
<dtid="string_utils.contains_html">
356
+
<codeclass="descclassname">string_utils.</code><codeclass="descname">contains_html</code><spanclass="sig-paren">(</span><em>string</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#string_utils.contains_html" title="Permalink to this definition">¶</a></dt>
357
+
<dd><p>Checks if the given string contains html code.
358
+
By design, this function is very permissive regarding what to consider html code, don’t expect to use it
359
+
as an html validator, its goal is to detect “malicious” or undesired html tags in the text.</p>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>string</strong> (<em>str</em>) – Text to check</td>
365
+
</tr>
366
+
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body">True if string contains html, false otherwise.</td>
<codeclass="descclassname">string_utils.</code><codeclass="descname">camel_case_to_snake</code><spanclass="sig-paren">(</span><em>string</em>, <em>separator='_'</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#string_utils.camel_case_to_snake" title="Permalink to this definition">¶</a></dt>
@@ -454,6 +474,30 @@ <h1>Welcome to Python String Utils’s documentation!<a class="headerlink" h
454
474
</table>
455
475
</dd></dl>
456
476
477
+
<dlclass="function">
478
+
<dtid="string_utils.strip_html">
479
+
<codeclass="descclassname">string_utils.</code><codeclass="descname">strip_html</code><spanclass="sig-paren">(</span><em>string</em>, <em>keep_tag_content=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#string_utils.strip_html" title="Permalink to this definition">¶</a></dt>
480
+
<dd><p>Remove html code contained into the given string.</p>
0 commit comments