Ad

Blog

How to sanitize full HTML 5 documents with HTMLPurifier

@machinateur Mar 01, 2024 15 min read

When it comes to sanitization of HTML content, HTMLPurifier (ezyang/htmlpurifier) is a popular library. Sanitization is commonly used in content management systems and really all kinds of software that deals with web content.

N...

Talking to Arduino from PHP using phpduino

@machinateur Jan 20, 2024 5 min read

This is what phpduino does.

// First register the protocol and stream wrapper, ... \Machinateur\Arduino\streamWrapper::register(); // ... then use the protocol in a stream function... $fd = \fopen('arduino://', 'r+b'); // ... and...