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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Stripping html tags from Receipts etc
Pages: [1]

Author Topic: Stripping html tags from Receipts etc  (Read 908 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Stripping html tags from Receipts etc
April 15, 2009, 02:56:22 pm
Hi - we have been using the occasional html tag in the Field Label in order to easily improve the look of event/donation forms in civicrm - eg placing a <HR> at the beginning of a label in order to create the impression of a 'section' within the form.

This is fine for minor tweaking. however just spotted that the email receipt that gets sent when event registration form is filled in displays the html tags as text - not surprising really.

Just wondered if anyone had a quick suggestion for modifying the code that generates the txt receipt so that it hides/ignores/removes the html tags.

if not I guess we go back to playing with tpls.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

narayanis

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
Re: Stripping html tags from Receipts etc
April 20, 2009, 05:16:47 pm
Hey, I found this on jira and it's marked for 2.3:

Allow HTML Emails for Confirmations and Receipts
http://issues.civicrm.org/jira/browse/CRM-3507

So I guess that means it's coming?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Stripping html tags from Receipts etc
April 20, 2009, 05:27:18 pm
As it happens, I just shifted all the code bits in to the Field Help for the field above and got the look that I wanted.

It makes me feel that a 'dud' profile field might be an easy way to implement this feature. I.e. we can enter a 'dud' field where we want to use just the Field Help in order to make some nice section breaks.

Dave? Lobo? I will articulate this better when we meet up but might be a nice easy fix for these profile design issues.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Stripping html tags from Receipts etc
April 20, 2009, 08:39:47 pm
Quote from: peterd on April 20, 2009, 05:27:18 pm
Dave? Lobo? I will articulate this better when we meet up but might be a nice easy fix for these profile design issues.

A patch along with the articulation in an issue will ensure it makes it into the next release

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Stripping html tags from Receipts etc
April 20, 2009, 09:02:58 pm
Indeed - keen to have a look at doing this as it if simple would make profiles a whole lot more pleasurable on the eye.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Stripping html tags from Receipts etc

This forum was archived on 2017-11-26.