# Dynamic html embed

**URL:** <https://community.weweb.io/t/dynamic-html-embed/2863>\
**Category:** Ask us anything\
**Tags:** binding\
**Created:** [May 29, 2023, 7:24pm UTC](https://community.weweb.io/t/dynamic-html-embed/2863 "2023-05-29T19:24:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adammiko](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@adammiko](https://community.weweb.io/u/adammiko)\
**Post date:** [May 29, 2023, 7:24pm UTC](https://community.weweb.io/t/dynamic-html-embed/2863/1 "2023-05-29T19:24:17Z")

</div>

trying to figure out a way to utilize regex and I’m not having a lot of success with it

the idea is to get an HTML embed to be dynamic

---

<div class="post-metadata">

**Author:** ![jaredgibb](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jaredgibb](https://community.weweb.io/u/jaredgibb)\
**Post date:** [May 29, 2023, 10:35pm UTC](https://community.weweb.io/t/dynamic-html-embed/2863/2 "2023-05-29T22:35:12Z")

</div>

You need to bind the html to your dynamic value with a formula.

Click the bind button, enter your formula. Concatenate values or find and replace as needed

---

<div class="post-metadata">

**Author:** ![adammiko](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@adammiko](https://community.weweb.io/u/adammiko)\
**Post date:** [June 1, 2023, 12:21am UTC](https://community.weweb.io/t/dynamic-html-embed/2863/3 "2023-06-01T00:21:36Z")

</div>

Thanks, Jared! Any idea where I’d even start with a formula like this?

---

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [June 1, 2023, 4:28am UTC](https://community.weweb.io/t/dynamic-html-embed/2863/4 "2023-06-01T04:28:22Z")

</div>

Try co-pilot. Has been working great for me.

---

<div class="post-metadata">

**Author:** ![raydeck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raydeck/32/384_2.png) [@raydeck](https://community.weweb.io/u/raydeck)\
**Post date:** [June 1, 2023, 10:43am UTC](https://community.weweb.io/t/dynamic-html-embed/2863/5 "2023-06-01T10:43:53Z")

</div>

This is an area where using a bit of javascript might be simpler than using the weweb formulae. You’re already a member of [State Change](https://statechange.ai) - this would be a cool use case to bring to our next office hours!

---

<div class="post-metadata">

**Author:** ![jaredgibb](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jaredgibb](https://community.weweb.io/u/jaredgibb)\
**Post date:** [June 1, 2023, 4:41pm UTC](https://community.weweb.io/t/dynamic-html-embed/2863/6 "2023-06-01T16:41:53Z")

</div>

it requires a little bit of JS and potentially some URL validation to ensure you dont F up the. weweb builder BUT it’s totally doable. and exampled here
