Closed mattheu closed 8 years ago
I know ;) but down the line say 6 months, it's just clearer to see what we're doing and that $node
is either div
or span
rather than going back to the xpath.
OK - I think we can reuse the code for unwrap
so i've moved to a separate method and added better documentation. I think its much neater now. Thanks ;)
Oh oops you merged ;) Was still fixing your comments ;)
FB doesn't seem to like our markup. There are a few differences I've noticed from ours, the documentation, and other feeds
embed-
. We can fairly easily unwrap these using.<iframe><iframe src="">
. I don't think this is 100% necessary, and the video will render full width if we can strip the outer iframe. However we can only do this if the embed uses an iframe, and not if using scripts and other markup, so I'm quite strict about checking this is the only element.