/ Published in: JavaScript
Expand |
Embed | Plain Text
<?js function cleanString(string, del) { if (string.indexOf(del) > -1) { string = string.substr(0, string.indexOf('#')); } return string; } ?>
Comments
Subscribe to comments
You need to login to post a comment.

nice too var alt = item.name; var altStripped = alt.replace(/#./, '');