How are special characters encoded in tag-URL?

admin2025-06-06  6

I am trying to get the right link to Tag-Pages/Archives with JS out of the tag name.

For the tag "abc" I can use ?tag=abc. But for "$$" neither ?tag=$$ nor ?tag=%24%24 (used encodeURIComponent) work.

I know I could use the tag's term_id, but in my context, I don't know the term_id and would have to do a separate ajax call just to get it, which seems not very elegant...

Does an encoding exist, which allow getting to the tags page of "$$"?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749202456a317222.html

最新回复(0)