ubuntu-bengali-manual team mailing list archive
-
ubuntu-bengali-manual team
-
Mailing list archive
-
Message #03488
[Bug 656191] [NEW] Urls are not clickable ie converted to <a href="">
Public bug reported:
Pages like http://loco.ubuntu.com/events/team/374/detail/ that contain
urls it is very hard (in the web2.0 world) to explain why users can't
click on the urls.
Seems like a simple fix would be do do
import re
myString = "This is my tweet check it out http://tinyurl.com/blah"
r = re.compile(r"(http://[^ ]+)")
print r.sub(r'<a href="\1">\1</a>', myString)
>From http://stackoverflow.com/questions/720113/find-hyperlinks-in-text-using-python-twitter-related
Just before displaying the text (after it has been escaped for other injections)
Seems easy to implement and only a minor view change so we can remove it
at any point.
** Affects: loco-directory
Importance: Undecided
Status: New
--
Urls are not clickable ie converted to <a href="">
https://bugs.launchpad.net/bugs/656191
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to loco-directory.
Status in LoCo Directory: New
Bug description:
Pages like http://loco.ubuntu.com/events/team/374/detail/ that contain urls it is very hard (in the web2.0 world) to explain why users can't click on the urls.
Seems like a simple fix would be do do
import re
myString = "This is my tweet check it out http://tinyurl.com/blah"
r = re.compile(r"(http://[^ ]+)")
print r.sub(r'<a href="\1">\1</a>', myString)
>From http://stackoverflow.com/questions/720113/find-hyperlinks-in-text-using-python-twitter-related
Just before displaying the text (after it has been escaped for other injections)
Seems easy to implement and only a minor view change so we can remove it at any point.
Follow ups
References