0

I want to use the following art:

     _.---._    /\\
    ./'       "--`\//
  ./              o \
 /./\  )______   \__ \
./  / /\ \   | \ \  \ \
   / /  \ \  | |\ \  \7
    "     "    "  "        VK

In react I am doing the following:

const x = String.raw`
  _.---._    /\\
  ./'       "--`\//
./              o \
/./\  )______   \__ \
./  / /\ \   | \ \  \ \
 / /  \ \  | |\ \  \7
  "     "    "  "        VK`

I have also tried using the tag but most of those characters are appearing as errors

EDIT: so this does not get deleted I am explicitly mentioning that I am using some different assets from that website, alot of them do not work when you just copy past because they appear as errors in the ide, I am using VSCode. Yes for some I can just copy paste the thing and its fine, for others it does not work

ewakwwg12
  • 71
  • 7
  • 1
    have you tried to simply include it as a string in your code and displaying it as `
    ` 
     HTML element. it preserves whitespace and formatting, so the ASCII art will be displayed as intended.
    – DanTe Dec 30 '22 at 18:48
  • Why is the question closed if none of answers work... I cannot just paste it as is because alot of the characters appear invalid with a red squiggly line at the bottom – ewakwwg12 Dec 30 '22 at 19:07
  • Hi, are you saying that using pre does not work for you? You can edit your question for example putting in a runnable snippet which shows the problem when you use pre and see if it can be reopened. – A Haworth Dec 30 '22 at 20:37

0 Answers0