[Get] Normal Text to iMacros Text Converter [HTML+JavaScript]

Web Echo

Regular Member
Jr. VIP
Joined
Apr 5, 2012
Messages
369
Reaction score
141
I am not sure if I am posting this in correct forum. I am sorry if posting in wrong forum.

I devoped this simple tool to convert advertising text copy to imacros text form. It will replace space with <SP> tag and new line with <BR> tag. That's it.

Code:
<html>
<head>
</head>
<body>

<script>
function c2MT () {

var mytext = '';

lines=document.getElementById("myta").value.split('\n') 

for (var i=0; i < lines.length; i++) {

mytext = mytext + lines[i].replace(/ /g, '<SP>') + '<BR>';
mytext = mytext.replace(/\r/,'');
}

document.getElementById("myta").value = mytext;

}
</script>

<textarea id=myta cols=80 rows=20>
</textarea>

<button onClick="c2MT ();">Convert 2 iMacros Text Format</button>

</body>
</html>

Store the above code in a .html file and run the .html file. Enter text in textarea and click converter button. It will display converted text in the textarea. Enjoy!
 
No one find it helpful? Am I the only one who like to keep testing different text with imacros script??
 
Back
Top