[eluser]LuckyFella73[/eluser]
Running your code on my ci installation returns your output
without "<style>" and I can't imagine any reason why this lines
of code should produce the output you get when just running the
lines of code you posted.
Can you show more relevant code? In my opinion the error must
be elsewhere.