TOPIC:

html fields showing html tags in frontend view 1 year 2 weeks ago #236793

  • Topic Author
  • witchypaws
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 26
  • Thanks: 0
HI there

I have created a form in breezing forms and then created a special view in content creator

When I look at a listing on the frontend, all the fields that were html and had the editor enabled are showing the html tags

How do I stop that happening please, I am using the latest version of joomla and downloaded and installed the latest version of content creator about four days ago

I am using JCE editor (free) for the editor
Attachments:

Please Log in or Create an account to join the conversation.

html fields showing html tags in frontend view 1 year 1 week ago #236824

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

Here are instructions on how to get the pure text without HTML tags when displaying an HTML textarea record.

Please go to ContentBuilder view created for that form. Go to the View tab and in the Item wrap code for that textarea element paste in this code:
<?php $value=html_entity_decode($value); ?>

That will make the text display with HTML tags applied in the List view.

To make the text display that way also when you enter a certain record do as follows.
Go to Content Prepare and paste in this code:
$items["fieldname"]["value"] = html_entity_decode($items["fieldname"]["value"]);
NOTE: In the code above replace both instances of fieldname with the Name of that HTML textarea field.

Let me know if this works how you wanted.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

html fields showing html tags in frontend view 1 year 5 days ago #236946

  • Topic Author
  • witchypaws
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 26
  • Thanks: 0
HI Mihaela

That did work however, the display now has an additional br tag under it each time, please see the screen shot, it makes the output look very unprofessional

Can you please tell me how to fix this

Thanks

Jacqui
Attachments:

Please Log in or Create an account to join the conversation.

html fields showing html tags in frontend view 1 year 5 days ago #236959

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

I've looked into this and it is true. When "html_entity_decode" is used it adds an additional <br> for each end of line.

At the moment, unforunately the only way to avoid the empty lines is not to use HTML textarea, but the regular one.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

html fields showing html tags in frontend view 1 year 4 days ago #236967

  • Topic Author
  • witchypaws
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 26
  • Thanks: 0
There seems to be little point in using a cck if you can't have html fields without it looking unprofessional but thanks anyway

Will have to put the app in sobipro instead as it is vital to the display of our members

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.109 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!