tglogo.png
0 LIKES

Snippet


ascii to html converter by lost

In Category General IRC Posted by Snippets On 12/06/23
Tags: ascii html converter lost 

ascii to html converter
try: /asciihtml text here
or replace echo to return on last line and use $asciihtml(text here)
alias asciihtml {
  var %x = 0,%lx = $1-,%y = $len(%lx)
  unset %len.asc
  while (%x < %y) {
    inc %x
    %mid.asc = $mid(%lx,%x,1)
    set %len.asc $+(%len.asc,$iif(%mid.asc == $chr(32),&#32;,$+(&#,$asc(%mid.asc),;)))
  }
  echo %len.asc
}


Comments 0


Please note that on our website we use cookies necessary for the functioning of our website, cookies that optimize the performance. To learn more about our cookies, how we use them and their benefits, please read our Cookie Policy.
I Understand