Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I experience issues with property type tags when editors use the & character in tags, e.g. "Research & Development".
My setup is this:
First, I check the URL for a topic value.
var topic = string.Empty; topic = string.IsNullOrEmpty(Request["t"]) ? string.Empty : Request["t"];
I then transform the value to lowercase.
var topicLow = topic.ToLower();
Finally I look for the lowercase topic value in an array named "everything".
var myResult = everything.Where( x => x.Value<string[]>("topicTags").Select(s => s.ToLowerInvariant()).ToArray().Contains(@topicLow) );
This works just fine in most cases, just not when the topic tag contains a & character.
Possible reasons for this issue and suggestions for solutions will be much appreciated.
It is most likely being encoded
yup, encoding/decoding it was
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
issue with special characters in tags
I experience issues with property type tags when editors use the & character in tags, e.g. "Research & Development".
My setup is this:
First, I check the URL for a topic value.
I then transform the value to lowercase.
Finally I look for the lowercase topic value in an array named "everything".
This works just fine in most cases, just not when the topic tag contains a & character.
Possible reasons for this issue and suggestions for solutions will be much appreciated.
It is most likely being encoded
yup, encoding/decoding it was
is working on a reply...