ascii to html converter

By lost on Oct 31, 2018

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

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.