admin管理员组

文章数量:1130349

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 "$$"?

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 "$$"?

本文标签: How are special characters encoded in tagURL