- Home /
Specials characters of a code C# (such as: < > & ) are not right displayed in the website
Is not possible to just copy and paste the code of Unity Learn Tutorials scripts, because every string between "<>" are not displayed (because html parser think is a tag?), so need to add these manually. I tested it with latest versions browsers, Edge, Chrome and FireFox...is disheartening to have errors unexpected while follow with trust the tutorial... also the "&" character, and "<" or ">" alone, have the same problem. I hope there is a way to fix this issue, to make the Unity tutorials more correct and beginner friendly!
Answer by JDelekto · Jun 23, 2018 at 09:12 AM
While I am not sure if it still exists, it seems for those code snippets formatted in the tutorials that the special characters were not actually HTML encoded, but instead the HTML encoding text was used in the code when pasting.
For now, the best thing to do would be to copy and paste the tutorial code, then do a global search and replace for the following:
Search For Replace With
> >
< <
& &
" "
You could use an online HTML decoding tool (such as Code Beautifier), which will require you paste in the example, then copy the result and paste again your actual source code. It's an unfortunate annoyance and I'm not sure how long it would take for them to get around to fixing the examples.
Your answer
Follow this Question
Related Questions
How to host my webGL build on blogger? 1 Answer
Add game to my website? 2 Answers
"failed to download data file" When I put my game on 000webhost 2 Answers
Display a website page 2 Answers