Besides, when my keyword is connected with other word without space, it can't be convert to the Regex and quad.
How can I correct them?
The added codes is as following(My keywords form is like [00]):
// perform simple substitution if there are no tags present
else
{
input = input.Replace ("[", " [");
input = input.Replace ("]", "] ");
input = kv.Value(input, keyword);//The original codes
input = input.Replace (" <", "<");
input = input.Replace ("> ", ">");
}