<template>
  <div v-html="htmlContent"></div>
</template>

<script>
export default {
  name: 'rtHtmlContent',
  props: {
    text: {
      type: String,
      default: ''
    }
  },
  computed: {
    htmlContent() {
      if (!rt.isNilOrWhiteSpace(this.text)) {
        return this.text.replace('/FileDownloadHandler.ashx', `${rt.getBaseURL()}FileDownloadHandler.ashx`);
      }
      return '';
    }
  }
};
</script>
