We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Trimming /replacing weblog output

Development and Programming

fccinter's avatar
fccinter
77 posts
16 years ago
fccinter's avatar fccinter

Hello,

Is there an EE way to trim/replace special characters of a weblog output?

Thanks

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
16 years ago
Pascal Kriete's avatar Pascal Kriete

There are a few plugins that do this, depending on what you need to trim. HTML Strip comes to mind.

       
fccinter's avatar
fccinter
77 posts
16 years ago
fccinter's avatar fccinter

Thanks, I never thought of looking to plugins… I basically need to change special characters to their “generic” counterpart such as : é -> e , É -> E and replace space by underscore.

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
16 years ago
Pascal Kriete's avatar Pascal Kriete

A plugin is definitely what you’re after.

They’re not hard to create - take a look at the developer documentation. The functionality you’re after already exists in the create_url_title function of the regex class (found in system/core/core.regex.php).

I’ll move it down to plugin development to get some more eyes on it.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.