TwistPHP Documentation

sanitisePlainMessage

File path: dist/twist/Core/Models/Email/Create.model.php
Namespace: Twist\Core\Models\Email
Extends:

sanitisePlainMessageSanitise the plain message to ensure no HTML is present, use Html2Text to do this

Return Values

void — No return information has been documented for this function.

Example

<?php
//Call the function sanitisePlainMessage with the example vars
$resCreate = new \Twist\Core\Models\Email\Create();
$resCreate -> sanitisePlainMessage();