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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.