ebsearch/results/?solrsort=<keyword>
When I use $_GET['solrsort'] it is not printing the keyword.
I tried strip_tags, but it didn't work..
Any other solution?
Thanks in advance..
Try
echo str_replace(array('<','>'),array('<','>'),$_GET['solrsort']);
or (better)
echo htmlspecialchars($_GET['solrsort']);
The <keyword> will not be displayed in the rendered HTML output because it looks like a tag, and strip_tags() will remove it completely for the same reason.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With