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!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 116
Toufiq

Toufiq

Total Accepted Answers: 72
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 25
Ofi Khan

Ofi Khan

Total Accepted Answers: 14
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 9

120

Templates

310857

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