- Posts: 4
COMMUNITY FORUM
Strip HTML tags in title?
- gkm
- Topic Author
- Offline
- New Member
Less
More
10 years 4 months ago #55830
by gkm
Strip HTML tags in title? was created by gkm
How can I strip the HTML tags in the feed item titles?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55845
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Strip HTML tags in title?
Hi. There is no option for that. You will have to make a module override and use the following code in the part where the title is printed:
<?php echo strip_tags($feed->itemTitle); ?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- gkm
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 4 months ago #55854
by gkm
Replied by gkm on topic Strip HTML tags in title?
thanks!
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55861
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Strip HTML tags in title?
You are welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- gkm
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 4 months ago #55898
by gkm
Replied by gkm on topic Strip HTML tags in title?
The suggested change has been made, but It doesn't seem to be working.
It's not stripping out the html encoded characters
It's not stripping out the html encoded characters
<b> or </b>
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55912
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Strip HTML tags in title?
Of course it will not strip them, since they are not HTML tags anymore. You can try to decode back the characters using this code ( NOTE: Requires PHP 5.1 or later ):
<?php echo strip_tags(htmlspecialchars_decode($feed->itemTitle)); ?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- gkm
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 4 months ago #55947
by gkm
Replied by gkm on topic Strip HTML tags in title?
Thanks! that worked perfectly.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55950
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Strip HTML tags in title?
You are welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.