Skip to content
TG007 community snippet #130

ascii to html converter by lost

ascii to html converter try: /asciihtml text here or replace echo to return on last line and use $asciihtml(text here)

By Snippets Added Dec 6, 2023
General IRC All snippets
mIRC script 10 lines
About this snippet

Overview

ascii to html converter
try: /asciihtml text here
or replace echo to return on last line and use $asciihtml(text here)
Source code

mIRC script

10 lines · 251 characters
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
}
Community

Comments

Want to join the discussion? Sign in to TG007.
No comments yet. Start the discussion.