Hi all
I am storing the embed source from YouTube into a table field in my database and when I extract the info ready to be displayed on the web page, I need to replace the current width and height tags from the embed source with my predefined hights and widths. Can someone help and show me how a snippet of code would achive it?
I have put below an good example of what I need doing:
Change this code (where XXX can be any number)
width="XXX" height="XXX"
To be this code:
width="250" height="207"
Please also note that the Height and Width Tags can appear more than once on the same string extracted from the table.
Many Thanks for reading
K