facebook / facebook/hhvm

htmlentities() doesn't recognize (and ignores) ENT_HTML5 flag

Open
#2,727 4 comments 0 reactions 0 assignees View on GitHub
php5 incompatibility
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

``` php
var_dump(htmlentities('This + is. a < test', ENT_HTML5 ));
```

on `HipHop VM 3.1.0-dev+2014.05.22 (rel)` produces:

```
string(22) "This + is. a < test
```

on `PHP 5.5.12-2` produces:

```
string(34) "This + is. a < test"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.