I am trying to find a string from a html section
Example
<div class="container" data-id="Youtube" style="height:100%;width:100%;border:none;">
<div class="inner"></div>
Generally we find a string using
if(strpos($string,"YouTube") !== false)
but for a sample test i am trying to store the html code into a php variable
$string="<div class="container" data-id="Youtube" style="height:100%;width:100%;border:none;">
<div class="inner"></div>";
when i try to find for a youtube in $string , It always returns false(does not exist)
Can anyone help me to find the string in a html code Thank you