I have this code for parsing RSS to HTML.
<?php $channel_desc = $channel->getElementsByTagName('description') ->item(0) ->childNodes ->item(0) ->nodeValue; I want to get only 150 characters from the first description. How can I limit the length output?
nodeValue? Add thexmlurl, that would be better to understand.