'app-plug-in 'menu News Reader ####################################################################### # $Id: snarf.bas,v 1.4 2006/01/28 07:24:56 zeeb90au Exp $ # fetch web pages for off-line reading ####################################################################### # strip the given tag from the html text sub removeTag(byref s, tag) local i, i_end, s_len, end_tag end_tag = "" tag = "<"+tag s_len = len(s) for i = 1 to s_len i = instr(i, s, tag) if (i = 0) then exit for fi i_end = instr(i, s, end_tag) if (i_end = 0) then i_end = s_len fi i_end += len(end_tag) s_end = if(i_end