I’d like to be able to use, for example, {post-title} but have it encoded.
Use case: I have a reply-by-email function on posts but I don’t use the post title as the subject because validation complains about the spaces in the mailto link. Maybe like {post-title-encoded} or something.
I might not be using the right terminology. I was looking for spaces replaced by %20” which I think (from a quick Google) happens through rawurlencode(). My mistake.
Gotcha, sorry! I used urlencode() when I should have used rawurlencode(). Incidentally I believe the output is virtually identical except for the use of + for spaces. Just flipped it to the other function and now spaces are rendered as %20 as intended.
OK, hmm, sorry about that. Clearly I goofed something… can you point me to a URL on your weblog where you’re expecting to see it? That’ll help me as I try to iron it out.