Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Jupyter-PHP is unable to render HTML #24

Open
NabiKAZ opened this issue Sep 29, 2017 · 1 comment
Open

Jupyter-PHP is unable to render HTML #24

NabiKAZ opened this issue Sep 29, 2017 · 1 comment

Comments

@NabiKAZ
Copy link

NabiKAZ commented Sep 29, 2017

How can render and display HTML in output?
I try this codes:

header("Content-Type: text/html; charset=utf-8");
echo "Hi <b>world!</b>";

But have this in output:

Hi <b>world!</b>

In other words, what is the equivalent of the following python commands in Jupyter-PHP?

from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))
@castarco
Copy link
Contributor

There is no current equivalent. But I'll be grateful if someone contributes this feature.

@castarco castarco changed the title How can render and display HTML in output? Jupyter-PHP is unable to render HTML Oct 13, 2017
BenRussert added a commit to BenRussert/Jupyter-PHP that referenced this issue Jul 15, 2019
- Applies to `echo` results, or any message with message option `OUTPUT_RAW`
- fixes Coder-Spirit#24
a
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants