LaTex in Dash has no spacing and jumps around

Hi.

Im using the following line of code to generate latex in dash. The math has no spacing and jumps around a little bit (se attached picture). What could be the issue?

Code:

html.Div(className="row", children=[
            'where $R_{i,t}$ is the return for investment $i$ at time $t$, $r_t$ is the funding rate, '
            '$F_{j,t}$ is the return of factor $j$ at time $t$, $\\beta_{i,j}$ is the exposure to '
            'factor $j$, and $\epsilon_{i,t}$ is an idiosyncatric return term.'])

Result:

It seems that the className was the problem. Removing className="row" solved it.