mirror of
https://github.com/danog/psalm.git
synced 2024-12-14 02:07:37 +01:00
16 lines
210 B
Markdown
16 lines
210 B
Markdown
|
# TaintedHtml
|
||
|
|
||
|
Emitted when tainted input detection is turned on and tainted HTML is detected.
|
||
|
|
||
|
```php
|
||
|
<?php
|
||
|
|
||
|
$name = $_GET["name"];
|
||
|
|
||
|
printName($name);
|
||
|
|
||
|
function printName(string $name) {
|
||
|
echo $name;
|
||
|
}
|
||
|
```
|