Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 16 Hours, 40 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Delete formatting of text
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Delete formatting of text
#7914
Delete formatting of text 1 Year, 10 Months ago  
Hey,

nice component - something really outstanding.

My problem: i want to delete all html tags from my articles (except <br>, <img> and <table>). Is it possible with ReReplacer? Can you give me example settings?

Does ReReplacer have a big influence on server performance?

thanks in advance,

greets

henne32
Mathias
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7915
Re: Delete formatting of text 1 Year, 10 Months ago  
There are probably some regular expressions out there to do this. I would suggest you google it.

With regards to server performance: every plugin that actually does something costs some time to execute. So yes, ReReplacer - depending on the amount and complexity of the replacements will cost a certain amount of time/memory.
See here for some tips:
www.nonumber.nl/forum/13-rereplacer/7123...as-light-as-possible
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7919
Re: Delete formatting of text 1 Year, 10 Months ago  
Peter van Westen wrote:
There are probably some regular expressions out there to do this. I would suggest you google it.

Sry, cant follow you. What do you mean with it? I tried to find a solutions for my problem with google and came to this site. I need to replace/delete html formatting from my articles.

can you help me?

thanks in advance,

greets
Mathias
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7943
Re: Delete formatting of text 1 Year, 10 Months ago  
ReReplacer is an extension (for Joomla) that can handle regular expressions. But Regular expressions is something globally used. So it is somewhat outside support for ReReplacer to figure out what regeular expression to use.
www.google.com/search?hl=en&q=regula...ion+remove+html+tags

It is quite complex/difficult to replace "all except these tags".
So it is easier to do this in a tree step replacement:

1) replace the tags you wanrt to keep with something like {tagname} (so <table> -> {table}, <img ...> -> {img ...})
2) remove all remaining html tags
3) replace the {tagname} syntax back to <tagname>
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
Open Source Training | Online Joomla! Training and Support
MaxCDN | Content Delivery Network | Accelerate your site to the max
hosting joomla