Logo
  • Home

regex

WordPress TinyMCE editor stripping <p> and <br> tags
WordPress TinyMCE editor stripping <p> and <br> tags

By default WordPress adds <p> tags at runtime, so the editor is usually set up to strip them out. But sometimes you might need to use an editor where these tags aren’t stripped out, for example writing content for a newsletter that needs to have these tags in. And you might not want to change... » read more

0
Read
ralpharama written 3 years ago
Switching out YouTube and Soundcloud for their AMP component versions with regex
Switching out YouTube and Soundcloud for their AMP component versions with regex

I’m writing AMP versions of our news pages, and one of the problems is that the editors embed a lot of content, which just doesn’t work on AMP pages. Rather than write a whole new chunk of CMS I thought I’d see if we can work out a way to just hotswap them out with... » read more

0
Read
ralpharama written 7 years ago

Tiresome legal obligation privacy policy

https://www.buymeacoffee.com/ralpharama: Switching out YouTube and Soundcloud for their AMP component versions with regex
Copyright © 2025 Ralpharama Geek Blog. All rights reserved. Theme by Mynote.