1👍
✅
Escape them: c\+\+
. Maybe escape them twice, if sth is evaluating one escaping: c\\+\\+
.
If you want to do that programmatically, use re.escape()
:
import re
print re.escape('c++')
This will print
c\+\+
👤Alfe
Source:stackexchange.com