Skip to content

Commit

Permalink
Add escape-html to HTTP snippet (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored and fhinkel committed Dec 8, 2018
1 parent 2cd7fe3 commit aac351b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions/helloworld/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
'use strict';

const Buffer = require('safe-buffer').Buffer;

// [START functions_helloworld_http]
const escapeHtml = require('escape-html');

// [END functions_helloworld_http]

// [START functions_helloworld_get]
/**
* HTTP Cloud Function.
Expand Down

0 comments on commit aac351b

Please sign in to comment.