---
title: "Discussion on \"Safe by accident\" | Hashnode"
description: "Discussion on \"Safe by accident\". The AI wrote WordPress code that escapes JavaScript correctly. Then I asked whether it was safe on purpose, or safe by luck."
url: "https://hashnode.com/posts/safe-by-accident/6a5e5c6a64c867bf34955976"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Safe by accident](https://blog.lunetrax.com/safe-by-accident?utm_source=hashnode&utm_medium=feed)

The AI wrote WordPress code that escapes JavaScript correctly. Then I asked whether it was safe on purpose, or safe by luck.

Jul 20 · 19 min read · blog.lunetrax.com  
Updated Aug 1  
Read the article

-   [#wordpress](https://hashnode.com/tag/wordpress)
-   [#ai](https://hashnode.com/tag/ai)
-   [#web-security](https://hashnode.com/tag/web-security)
-   [#php](https://hashnode.com/tag/php)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Lunetrax](https://hashnode.com/@lunetrax)

@lunetrax · Estonia

  
[View profile](https://hashnode.com/@lunetrax)

Notes on the security of AI-generated WordPress code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
