Download the PHP package repomaa/statamic-unaugment without Composer
On this page you can find all versions of the php package repomaa/statamic-unaugment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download repomaa/statamic-unaugment
More information about repomaa/statamic-unaugment
Files in repomaa/statamic-unaugment
Package statamic-unaugment
Short Description Statamic addon to disable augmentation for user-defined fields or field types
License
Informations about the package statamic-unaugment
Unaugment
Statamic "augments" field values by default when it serializes them in content api responses. Unaugment lets you define specific fields or field types that will be left alone and return the data without any modifications. This is especially useful for the Bard or Markdown field types which are otherwise rendered into html. By using the unaugmented data you mitigate any chance of XSS in your client application and are free to structure the dom - or your native app's components - however you want.
Configuration
Unaugment will place a sample config file into config
. Edit it to define the
fields and/or field types you want to unaugment.
Output
Unaugmented Bard field content looks like this:
Copyright
2021 - Joakim Repomaa