Answers.Body: <p>I would definitely not rely on client-side validation. It's fine to do it from a UX point of view, but you should also be doing it server-side as well.</p>
  
  <p>If this is a Vue app, write a custom validator for <a href="https://github.com/baianat/vee-validate" rel="nofollow noreferrer">Vee Validate</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-08T04:36:12.640Z
Answers.LastActivityDate: 2017-09-08T04:36:12.640Z
Answers.UserDisplayName: andrew.welch
Body: <p>If I'm enabling a user to post to Craft using the front-end entry form, is there a way that I can sanitize the title of a post?</p>
  
  <p>I'm looking to apply AP formatting to titles.</p>
  
  <p>I know Stephen has a plugin <a href="https://github.com/experience/entitle.craft-plugin" rel="nofollow noreferrer">Entitle</a> that does this but I'd rather have it on the initial submission.</p>
  
  <p>This is a JS app so I can't do it on the Twig side.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-07T16:31:22.917Z
Comments.Text: The JS app eventually POSTs the entry to Craft/PHP, correct?
Comments.UserDisplayName: Brad Bell
Tags: <filter><frontend-form>
Title: Sanitize front-end entry form field
ThreadText: # Sanitize front-end entry form field
  
  (Asked by: username_0 on 2017-09-07)
  
  If I'm enabling a user to post to Craft using the front-end entry form, is there a way that I can sanitize the title of a post?
  
  I'm looking to apply AP formatting to titles.
  
  I know Stephen has a plugin [Entitle](https://github.com/experience/entitle.craft-plugin) that does this but I'd rather have it on the initial submission.
  
  This is a JS app so I can't do it on the Twig side.
  
  **Tags:** filter, frontend-form
  
  > **Comments:**
  > **username_1**: The JS app eventually POSTs the entry to Craft/PHP, correct?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-09-08. Score: 2
  
  I would definitely not rely on client-side validation. It's fine to do it from a UX point of view, but you should also be doing it server-side as well.
  
  If this is a Vue app, write a custom validator for [Vee Validate](https://github.com/baianat/vee-validate)
  
  
  ---
  
  