< is usually encoded with < and > is usually encoded as >. You can also use < >.
You can run a sed command to replace. For example:
sed "s/</\</g" to replace all occurrences of < with <. You can also specify line numbers to replace in sed so sed "3,5s/</\</g" would replace all occurrences of < with < between lines 3-5. The -i option may be useful if you're dealing with files.
Comments
<
is usually encoded with<
and>
is usually encoded as>
. You can also use< >
.You can run a sed command to replace. For example:
sed "s/</\</g"
to replace all occurrences of<
with<
. You can also specify line numbers to replace in sed sosed "3,5s/</\</g"
would replace all occurrences of<
with<
between lines 3-5. The-i
option may be useful if you're dealing with files.