[PHP] aggiungere html in un codice

trattorino

Utente Attivo
23 Lug 2016
173
1
18
43
Io ho un file php dove genera un ember se l'utente inserisce un link video youtube lo converte in video,
ma cmq non sono molto esperto in php e chiedo a voi esperti
ho questa parte del codice che richiama tutto
Codice:
/* Video - insert the provided HTML directly (it will be a video so there's nothing we need to prevent from being edited), using .ipsEmbeddedVideo to make it responsive */
    case 'video':
        $response['html'] = str_replace( 'allowfullscreen', 'allowfullscreen="true"', $response['html'] );
    return \IPS\Theme::i()->getTemplate( 'embed', 'core', 'global' )->video( $response['html'] );
La domanda è.... è possibile inserire un codice html ad esempio un conenuto div in quel codice? ad esempio
Codice:
<div>test</div>
 

Discussioni simili