I tried many ways to get a single backslash from an executed (I don\'t mean an input from html).
html
I can get
Try String.raw method:
String.raw
str = String.raw`\apple` // "\apple"
Reference here: String.raw()