michaelchadwick/ember-remember-stuff

View on GitHub
packages/frontend/app/helpers/sanitize.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { htmlSafe } from '@ember/template';

export default function sanitize(input) {
  const sanitizedInput = input.trim();
  return htmlSafe(sanitizedInput);
}