Hi,
I’m trying to build a custom Gutenberg block where an editor can paste an external URL so it will create a block in the frontend which is filled with content from the meta-tags of that URL (just like a preview in Facebook/Twitter is generated).
This works in the frontend, but it would be very nice to display the meta-tag information in the backend as well (when in editing mode of the Gutenberg block).
Does anybody know if there is a way to parse PHP-code in this view?
The reason is I want the editor to show the content to make it easier to decide if the editor wants to switch to a manual mode (where he/she can enter a title, description and image manually)?