Ejemplo n.º 1
0
 def test_strip_links(self):
     self.assertEqual("on my mind", strip_links("<a href='almost'>on my mind</a>"))
     self.assertEqual("on my mind", strip_links("<A href='almost'>on my mind</A>"))
     self.assertEqual(
         "on my mind\nall day long",
         strip_links("<a href='almost'>on my mind</a>\n<A href='almost'>all day long</A>"),
     )
Ejemplo n.º 2
0
def remove_user_link(actor):
    return wbtools.strip_links(actor)
Ejemplo n.º 3
0
def remove_user_link(actor):
    return wbtools.strip_links(actor)
Ejemplo n.º 4
0
 def serialize(self, field, cstruct, readonly=False):
     if cstruct in (null, None):
         cstruct = '' #pragma : no cover
     return super(TextAreaWidget, self).serialize(field, strip_links(cstruct), readonly)
Ejemplo n.º 5
0
 def serialize(self, field, cstruct, readonly=False):
     if cstruct in (null, None):
         cstruct = ''  #pragma : no cover
     return super(TextAreaWidget,
                  self).serialize(field, strip_links(cstruct), readonly)