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: README.rst
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,3 +34,49 @@ Usage::
34
34
>>> result.html
35
35
u'<a href="http://twitter.com/ianozsvald">@ianozsvald</a>, you now support <a href="http://search.twitter.com/search?q=%23IvoWertzel">#IvoWertzel</a>\'s tweet parser! <a href="https://github.com/ianozsvald/">https://github.com/ianozsvald/</a>'
36
36
37
+
If you need different HTML output just subclass and override the ``format_*`` methods.
38
+
39
+
You can also ask for the span tags to be returned for each entity::
40
+
41
+
>>> p = ttp.Parser(include_spans=True)
42
+
>>> result = p.parse("@ianozsvald, you now support #IvoWertzel's tweet parser! https://github.com/ianozsvald/")
0 commit comments