in reply to Parsing un-encoded ampersand in XHTML

As I see it, the problem is that some of the & are not encoded properly, right? Just change all & to & and then change all & to &. Problem solved.
$text =~ s/&/&/gi; $text =~ s/&/&/g;

Replies are listed 'Best First'.
Re^2: Parsing un-encoded ampersand in XHTML
by Anonymous Monk on Oct 09, 2004 at 08:26 UTC
    Ok lets see now...

    This: $search_bAND
    prints one of these: &

    I want this:
    & So as I see it AND or bAND means & this is the problem. Like I said I am new to perl (not HTML) If I write $search_b& or $search_& the code breaks. Is there a way to change just the $search_bAND line without breaking the rest of the script?