CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Links in bold text break when converting html2text [4.2.7 fixed in 4.4.0]
Pages: [1]

Author Topic: Links in bold text break when converting html2text [4.2.7 fixed in 4.4.0]  (Read 433 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Links in bold text break when converting html2text [4.2.7 fixed in 4.4.0]
October 29, 2013, 08:29:01 pm
If the HTML portion of a CiviMail contains ...
Code: [Select]
<strong>This is a <a href="http://example.com/page">link<a>.</strong>
... then the text portion will contain a broken link.

html2text converts the text to
Code: [Select]
THIS IS A LINK [1]
where link "1" is captured as "HTTP:/ /EXAMPLE.COM/PAGE" (note that I've inserted a space between the first 2 slashes so this forum page doesn't convert the text to a link: it's not there in the link that's created). The mailing code then treats this as a relative link and converts it to "http://example/HTTP://EXAMPLE.COM/PAGE".

This problem was observed in 4.2.7 and is fixed in 4.4.0 as there is a new version of html2text.
« Last Edit: October 29, 2013, 08:31:48 pm by ken »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Links in bold text break when converting html2text [4.2.7 fixed in 4.4.0]
October 30, 2013, 12:45:27 am
thanks for confirming this fix :)

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Links in bold text break when converting html2text [4.2.7 fixed in 4.4.0]

This forum was archived on 2017-11-26.