We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

not working : html code in activities fields in sp booking

Featured Lock Resolved
Hello - I would like use html tags (<b>, <p>...) in the activites field from package (sp bookin) but it doen t works..
How to ?
thnaks and regards
Eric

7 Answers

alinea49

More than a month ago #Permalink
found myself the answer !

on component/com_spbooking/views/package/view.html.php
line 31
replace
$this->item->activities = (!empty($this->item->activities) && is_string($this->item->activities)) ? json_decode ($this->item->activities) : array();

with
$this->item->activities = (!empty($this->item->activities) && is_string($this->item->activities)) ? json_decode (htmlspecialchars_decode($this->item->activities)) : array();


--
note : htmlspecialchars_decode will display html tag
:D

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
sorry, as you noticed not possible.
All HTML code is cut off from them.
--
If you know how to use PHPMyAdmin you can try to add HTML code manually inside MYSQL table(s)
it may help.

alinea49

More than a month ago #Permalink
ok
even inserted with mysql, this doesn t work..
must be on next version !!
Have a nice day
Eric

Paul Frankowski - Staff

More than a month ago #Permalink
ok, in that case, I will ask for this dev team, if this is important somehow for you.

alinea49

More than a month ago #Permalink
ok, in that case, I will ask for this dev team, if this is important somehow for you.


Sure! including b, ul,il strong...for a better experience for reader.
or if you have another solution for that..
I would like sort by line each action in a day.
- Dejeuner,
- diner
- soirée

thanks

Attachments (1)

  • Screenshot_2019-09-11 Packages.png
    Screenshot_2019-09-11 Packages.png 42.4 KB

Paul Frankowski - Staff

More than a month ago #Permalink
congratulation, but I fully agree with you it should be built-in.


There are no replies made for this post yet.
Be one of the first to reply to this post!

126

Templates

333910

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us