code: function replacePlaceholder(str, value, _state) {
  	if (typeof str === 'string') {
  		const ranges = findUnescapedTokens(str, placeholder);
  		if (ranges.length) {
  			if (_state) {
  				_state.replaced = true;
  			}
  
  			str = replaceRanges(str, ranges, value);
  		}
  	}
  
  	return str;
  }
docs: Replaces all placeholder occurances in given `str` with `value`
  @param  {String} str
  @param  {String} value
  @param  {Object} [_state] If provided, set `replaced` property of given
  object to `true` if placeholder was found and replaced
  @return {String}