[Pidgin] #15738: purple_markup_strip_html does more than described in the docs

Pidgin trac at pidgin.im
Thu Aug 29 10:53:59 EDT 2013


#15738: purple_markup_strip_html does more than described in the docs
---------------------+-----------------------
 Reporter:  seishun  |      Owner:
     Type:  defect   |     Status:  new
Milestone:           |  Component:  libpurple
  Version:  2.10.7   |   Keywords:
---------------------+-----------------------
 According to the
 [https://developer.pidgin.im/doxygen/2.10.5/html/util_8h.html#a29de8afd351d5d27b8e741d470cdb71c
 docs], the purple_markup_strip_html function should only strip HTML tags
 from the string. However, it replaces "<br>" with a newline, and
 additionally unescapes HTML entities to their literal characters.

 For example, given the following string:

 `(5:50:14 PM) <font size="3">DrKoljan:
 <a>link1</a><br>(5:50:18 PM) DrKoljan:
 <a>link2</a></font>`

 purple_markup_strip_html returns the following:

 `(5:50:14 PM) DrKoljan: <a>link1</a>`

 The expected output is as follows:

 `(5:50:14 PM) DrKoljan: <a>link1</a>(5:50:18 PM) DrKoljan:
 <a>link2</a>`

 Since the current behavior is more useful, perhaps the docs should be
 updated to reflect it instead.

-- 
Ticket URL: <https://developer.pidgin.im/ticket/15738>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list