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
版权声明:本文标题:How are special characters encoded in tag-URL? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749202430a2332022.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论