Simple regexp hack. Find this at line 412: regexp {<span id="intelliTxt">(.*?)</span>} $html - output(horoscope) And change it to: regexp {<span id="intelliTxt"><p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope) Should be just that simple.