wordpress shortcode url decode non Latin character


I am using a shortcode to call some posts with a permalink using non Latin characters.

However the urls get percent encoded ( showing up as %20%regfd etc)
What is the best way to make sure urls are decoded in the front?

I noticed then adding some space before the link, the urls also shows up decoded. But I don’t think this is the best solution.

<a href=" '.$url.'">

Thanks in advance!

Missblues 2 weeks 2023-03-15T03:04:29-05:00 0 Answers 0 views 0

Leave an answer