2sic / razor-blade

A pretty awesome library to make work in Razor easier and more productive
MIT License
6 stars 2 forks source link

Adding ternary statement to the UriEncode to allow apostrophes in a url #5

Closed kieran23101 closed 4 years ago

kieran23101 commented 4 years ago

I have added a quick ternary statement into the Tag_UriEncode.cs file to allow for the apostrophe's to be encoded...

Weirdly, the replace needs to be done after the encode otherwise it encodes the "%27"

Regards

Kieran

iJungleboy commented 4 years ago

I believe the ternary doesn't help - I would just use a simple replace. But I can do that when I re-release razor blade.