Homec4science

WebComment: fix handling of links in comments

Description

WebComment: fix handling of links in comments

  • Fixes the handling of URLs so that they do not disappear from the output.
  • Detects links like: '<a href=" http://foo.com"> http://foo.com</a>' and tranforms them into '< http://foo.com>' (the link name is not necessary).
  • Transforms automatically links into HTML context in HTMLWasher (http://foo.com to <a href="http://foo.com">)
  • Adds 'automatic_link_transformation' param in "HTMLWasher.wash" in order to turn this feature on/off.
  • Validates the possible links before making the transformation in order to transform just the valid links.
  • Adds unit/regression tests. (closes #845)

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Mar 13 2012, 18:32
Parents
R3600:b4a3a79b4d03: WebJournal: choose index to refresh on release
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:babc003ca19d: WebComment: fix handling of links in comments (authored by Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>).Mar 13 2012, 18:32