]> BookStack Code Mirror - bookstack/commitdiff
Pages API: Added extra helper text to read endpoint
authorDan Brown <redacted>
Tue, 20 Jun 2023 16:15:32 +0000 (17:15 +0100)
committerDan Brown <redacted>
Tue, 20 Jun 2023 16:15:32 +0000 (17:15 +0100)
app/Entities/Controllers/PageApiController.php

index 655eeeec9ec4c2ce9bc4713a75bd7e9b5dec3962..93b90b4b7ac11aac6e2b4a79dc57179e8e2d2100 100644 (file)
@@ -86,6 +86,11 @@ class PageApiController extends ApiController
      * Pages will always have HTML content. They may have markdown content
      * if the markdown editor was used to last update the page.
      *
+     * The 'html' property is the fully rendered & escaped HTML content that BookStack
+     * would show on page view, with page includes handled.
+     * The 'raw_html' property is the direct database stored HTML content, which would be
+     * what BookStack shows on page edit.
+     *
      * See the "Content Security" section of these docs for security considerations when using
      * the page content returned from this endpoint.
      */